/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-09-26 16:06:58
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-09-26 16:34:31
 * @FilePath: \cxl-admin\src\apis\consume\topUp.ts
 */
import axios from '../../axios/index'

export interface topUpParams {
    current: number
    size: number
    companyId?: string
}

export interface topUpParamsInterface extends topUpParams {
    packageNameNumber?: number
    packageTypeList?: number[]
    payStatus?: number
    productType?: number
    queryDateEnd?: string
    queryDateStart?: string
}

export const topUpList = (params: topUpParamsInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/store-order-list',
        params
    })
}

export const topUpStatisticsList = (params: topUpParams) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/store/store-statistics-page-list',
        params
    })
}
